// 签名
import _bale from '../utils/package.js'
// 获取不同的接口地址
import { INDEXS_API } from '../config/index.js'
import { Service } from '../utils/server.js'
class SeckillModel extends Service {
  //查询首页秒杀商品
  selectIndexSeckill(params) {
    return this.postRequest(INDEXS_API + '/seckill/selectIndexSeckill', {
      data: _bale('selectIndexSeckill', params)
      // data:params
    })
  }

  //获取活动秒杀商品
  selectActivitySeckill(params) {
    return this.postRequest(INDEXS_API + '/seckill/selectActivitySeckill', {
      data: _bale('selectActivitySeckill', params)
      // data:params
    })
  }

  //设置开抢提醒
  makeSeckillGoods(params) {
    return this.postRequest(INDEXS_API + '/seckill/makeSeckillGoods', {
      data: _bale('makeSeckillGoods', params)
      // data:params
    })
  }
}
export { SeckillModel }